import os

# 设置输出文件目录
current_dir = os.path.dirname(os.path.abspath(__file__))
output_path = os.path.abspath(os.path.join(current_dir, "../output"))


class Config():
    def __init__(self):
        self.output_path = output_path
        self.label_name = 'auto' # ['wired_table', 'wireless_table','auto']
        self.threshold = 0.3 # 如 0.2， 表示过滤掉所有阈值小于0.2的表格单元框
        self.tol = 5 # 表格结构预测时的阈值
        self.host = '0.0.0.0'
        self.port = 8562
        self.cell_model_url = f'{self.host}:{self.port}/predict_cells/'
config = Config()
if __name__ == "__main__":
    print(config.output_path)